package com.start.xiancheng;

import lombok.extern.slf4j.Slf4j;


import java.io.FileReader;
import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;


@Slf4j
public class FutureTaskDemo01 {


    public static void main(String[] args) throws Exception {
       Thread t1 =  new Thread(()->{
            log.debug(Thread.currentThread().getName());
            log.info("t1-run");
        },"myThread");

        t1.start();
        log.debug("do other things ...");
    }


}
